Facebook\Tests\FacebookBatchRequestTest S

Total Complexity 31
Dependencies 5
Dependents 0
Total lines 401
Lines of code 273
Logical lines of code 117
Comment lines 21
Methods 28
Properties 1

Methods 28

Method Rating Maintainability Complexity Lines of code
requestsAndExpectedResponsesProvider()
S
50 1 34
assertRequestsMatch()
S
62 2 12
testBatchRequestsWithFilesGetConvertedToAnArray()
S
53 1 23
testPreppingABatchRequestProperlyMovesTheFiles()
S
52 1 22
testPreppingABatchRequestWithOptionsProperlySetsThePostParams()
S
55 1 19
testBatchRequestsWithOptionsGetConvertedToAnArray()
S
55 1 19
testPreppingABatchRequestProperlySetsThePostParams()
S
56 1 17
createAndAppendRequestsTo()
S
72 2 5
defaultHeaders()
S
68 2 7
testAddingRequestsWillBeFormattedInAnArrayProperly()
S
60 1 13
testBatchRequestEntitiesProperlyGetConvertedToAnArray()
S
67 1 7
createBatchRequestWithRequests()
S
74 1 5
createBatchRequest()
S
79 1 3
assertRequestContainsAppAndToken()
S
70 1 6
setUp()
S
79 1 3
testABatchRequestWillInstantiateWithTheProperProperties()
S
66 1 8
testMoreThanFiftyRequestsWillThrow()
S
73 1 5
testAZeroRequestCountWithThrow()
S
75 1 4
testRequestsCanBeInjectedIntoConstructor()
S
63 1 10
testAnAssociativeArrayOfRequestsCanBeAdded()
S
64 1 9
testANumericArrayOfRequestsCanBeAdded()
S
64 1 9
testAnInvalidTypeGivenToAddWillThrow()
S
76 1 4
testWillThrowWhenNoThereIsNoAccessTokenFallback()
S
76 1 4
testWillThrowWhenNoThereIsNoAppFallback()
S
75 1 4
testRequestWithAppOnlyWillFallbackToBatchDefaults()
S
70 1 6
testRequestWithTokenOnlyWillFallbackToBatchDefaults()
S
72 1 5
testEmptyRequestWillFallbackToBatchDefaults()
S
73 1 5
testLessOrEqualThanFiftyRequestsWillNotThrow()
S
73 1 5